﻿using System;
using System.Collections.Generic;
using System.Data;
using Wei8808Cms.DAL;
using Wei8808Cms.Model;

namespace Wei8808Cms.BLL
{
    public class NewTypeBLL
    {
        private readonly NewTypeDAL _dal = new NewTypeDAL();

        public int GetCount(Pagination qcmodel)
        {
            return _dal.GetCount(qcmodel);
        }

        public DataSet GetPageList(Pagination qcmodel)
        {
            return _dal.GetPageList(qcmodel);
        }

        public bool Add(NewTypeInfo model)
        {
            return _dal.Add(model);
        }

        public bool Delete(List<NewTypeInfo> list)
        {
            return _dal.Delete(list);
        }

        public NewTypeInfo GetNewTypeInfo(int id)
        {
            return _dal.GetNewTypeInfo(id);
        }

        public bool Update(NewTypeInfo model)
        {
            return _dal.Update(model);
        }

        public List<NewTypeInfo> GetNewTypeList()
        {
            return _dal.GetNewTypeList();
        }

        public List<NewTypeInfo> GetNewTypeAndNewsCountList()
        {
            return _dal.GetNewTypeAndNewsCountList();
        }
    }
}
